import { defineConfig } from 'vite'
import { resolve } from "path"
import react from '@vitejs/plugin-react'
import Format from './format'


// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), Format()],
  esbuild: {
    target: ['es2015', 'chrome70']
  },
  build: {
    target: ['es2015', 'chrome70'],
    cssTarget: ['chrome70']
  },
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src')
    }
  },
  server: {
    host: true,
    port: 25103,
    strictPort: true,
    open: true,
  }
})
